 $(document).ready(function(){
   var responseArray = [];
   $("input.acInput").live("focus",function(){
     $("input.acInput").autocomplete({
       source:function(request, response){
         dopost($("input.acInput"),response);
       }
     });
   });
   var acInfoBox = $("<div id='acInfoBox'></div>");
   function acInputKeyEvent(e){
     console.log(e.keyCode);
     acInfoBox.time = window.setTimeout();
     if(e.keyCode == 38){//up key
       
     } else {
       dopost(e.target)
     }
   }
   function dopost(inputBox,response){
     var url = "./Table.do";
     var acInput = inputBox;
     var ajaxPara = {
         colAction: 'acQuery'
     };
     ajaxPara['datatableName'] = getTableName(acInput);
     ajaxPara['colName'] = getColName(acInput);
     ajaxPara["colValue"] = $(acInput).val();
     ajaxPara["method"] = "run";
     $.get(url, ajaxPara, function(data){
       $(acInfoBox).empty().wrapInner(data);
       responseArray = [];
       $(acInfoBox).find("li").each(function(i,e){
         responseArray.push($(e).text());
       });
       response(responseArray);
     });
   }
 });